﻿using System;
using Red.Controls.Shell;

namespace Red.Toolkit.Profiler
{
    /// <summary>
    /// Interaction logic for GotoDialog.xaml
    /// </summary>
    public partial class QADialog : RedDialog
    {
        public QADialog( string question, string defaultAnswer = "" )
        {
            InitializeComponent();
            lblQuestion.Content = question;
            txtAnswer.Text = defaultAnswer;
        }

        private void Window_ContentRendered( object sender, EventArgs e )
        {
            txtAnswer.SelectAll();
            txtAnswer.Focus();
        }

        public string Answer
        {
            get { return txtAnswer.Text; }
        }
    }
}
